
package com.scs.application.modules.order.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.scs.application.modules.order.entity.PurchaseOrder;
import com.scs.application.modules.order.request.PurchaseOrderQueryRequest;
import com.scs.application.modules.order.vo.ExcelPurchaseOrderVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 采购订单 mapper对象
 *
 */
@Mapper
public interface PurchaseOrderMapper extends BaseMapper<PurchaseOrder> {

    /**
     * 导出
     *
     * @param request
     * @return
     */
    IPage<ExcelPurchaseOrderVO> pageExcel(IPage page, @Param("request") PurchaseOrderQueryRequest request);

    /**
     * 导入模板
     *
     * @param request
     * @return
     */
    List<ExcelPurchaseOrderVO> listExcel(@Param("request") PurchaseOrderQueryRequest request);

    PurchaseOrder selectDeliveryCountDay(@Param("request") PurchaseOrderQueryRequest request);

    PurchaseOrder selectUndeliveryCountSupplier(@Param("request") PurchaseOrderQueryRequest request);

    PurchaseOrder selectDeliveryAmount(@Param("request") PurchaseOrderQueryRequest request);

}
